@model EditAppSettingsViewModel

@{
	ViewBag.Title = Resources.Shared.AppName + " - " + string.Format(Resources.Shared.EditViewTitle, Model.IdentityDescription);
	string twoLettersCulture = new System.Globalization.CultureInfo(Culture).TwoLetterISOLanguageName;	
}

<div class="view-container">
  <div class="view-header-container">
    <h2 class="view-header">@string.Format(Resources.Shared.EditViewTitle, Model.IdentityDescription)</h2>
  </div>
  <!-- Top buttons -->
  <div class="view-button-container top-button-container">
    <input type="button" class="button back-button" title="@Resources.Shared.Back" onclick="document.location = '@Url.Action("Index","AppSettings")'"/>
    <input type="button" class="button save-button" title="@Resources.Shared.Save" onclick="$('#AppSettingsForm').submit()"/>	
  </div>
  <!-- Form begin -->
  <div class="entity-form-container">
    @using (Html.BeginForm("Edit", "AppSettings", FormMethod.Post, new { id = "AppSettingsForm" })) {
      @Html.ValidationSummary(true)
      <fieldset>
        <legend>@Resources.AppSettingsResources.AppSettings</legend>
		<div class="form">
          @Html.HiddenFor(model => model.Id)
				<div class="field">
				  <div class="label">
					@Html.Label(Resources.AppSettingsResources.AppKey)
			  	  </div>
				  <div class="editor">
					@Html.TextBoxFor(model => model.AppKey)
					@Html.ValidationMessageFor(model => model.AppKey)
				  </div>
				</div>
				<div class="field">
				  <div class="label">
					@Html.Label(Resources.AppSettingsResources.AppValue)
			  	  </div>
				  <div class="editor">
					@Html.TextBoxFor(model => model.AppValue)
					@Html.ValidationMessageFor(model => model.AppValue)
				  </div>
				</div>
        </div>
      </fieldset>
    }
    </div>
	<!-- Form end -->
 
</div>
@section Scripts {
	@Scripts.Render("~/bundles/jqueryval")
	<script src="@Url.Content("~/Scripts/cultures/methods_" + twoLettersCulture + ".js")" type="text/javascript"></script>
<script type="text/javascript">
</script>
}
